package cn.tedu.review;

public class Interclass2 {
    public static void main(String[] args) {
        new Inter2(){

            @Override
            public void eat() {
                System.out.println("干饭");
            }

            @Override
            public void play() {

            }
        }.eat();
    }
}
interface Inter2{
    void eat();
    void play();
}
